package com.burgeon.backend.SHOPBACKEND.service;

import com.burgeon.backend.SHOPBACKEND.entity.GroupData;
import com.burgeon.backend.SHOPBACKEND.service.ex.ErrorDataException;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.List;

public interface BackendGroupService {

    String getImg(String account);

    String upImg(MultipartFile file, String account) throws ErrorDataException;

    void isUse(String id,String use) throws ErrorDataException;

    HashMap getItem(String id);

    void deleteGroup(String id,String account) throws ErrorDataException;

    List<GroupData> getData(String account);

    void createGroup(GroupData groupData) throws ErrorDataException;

    //到下架时间的下架拼团商品
    void underGroup();
}
